<div class="top-list-addition-page main">
  <div class="technical-disclosure shadowbox">
    <div class="container-header">红黑榜新增</div>
    <form class="base-info pa-form-content"
      name="addForm" novalidate>
      <div class="row-item">
        <div class="pa-form-control w45">
          <label class="name fl"><b>*</b>施工队：</label>
          <div class="pa-input fl">
            <select id="type" name="type" style="width: 240px;" required 
              ng-model="topListAddition.topList.constructionTeamId">
              <option value=""></option>
              <optgroup ng-repeat="teamGroup in topListAddition.teamWithOrgList"
                label="{{teamGroup.orgUnitName}}">
                <option ng-repeat="team in teamGroup.teamList"
                  value="{{team.teamId}}">
                  {{team.teamName}}
                </option>
              </optgroup>
            </select>
          </div>
          <span class="error-tip" 
            ng-show="(addForm.$submitted || addForm.type.$dirty) && addForm.type.$error.required">
            必填
          </span>
        </div>
        <div class="pa-form-control w45">
          <label class="name fl"><b>*</b>榜单类型：</label>
          <div class="pa-input fl">
            <select name="rbType" required
              ng-model="topListAddition.topList.rbType">
              <option value="1">红榜</option>
              <option value="0">黑榜</option>
            </select>
          </div>
          <span class="error-tip" 
            ng-show="(addForm.$submitted || addForm.rbType.$dirty) && addForm.rbType.$error.required">
            必填
          </span>
        </div>
      </div>
      <div class="row-item">
        <div class="pa-form-control">
          <label class="name fl"><b>*</b>申报简介：</label>
          <div class="pa-input fl">
            <textarea class="form-control"
              name="reason" required 
              placeholder="填写理由"   
              ng-model = "topListAddition.topList.reason"  
              ng-change="topListAddition.checkText()"></textarea>
              <span class="addition-reason" 
                ng-show="topListAddition.reasonAddition">申报简介不能超过400个字数</span>
          </div>
          <span class="error-tip" style="width: 50px;" 
            ng-show="(addForm.$submitted || addForm.reason.$dirty) && addForm.reason.$error.required">
            必填
          </span>          
        </div>
      </div>
    </form>
    <div class="btn-outer">
      <a class="pa-btn"
        ng-click="topListAddition.submit(addForm)">
        <i class="fa fa-save"></i>
        <span class="ml5">提交</span>
      </a>
      <a class="pa-btn reset-btn"
        ng-click="topListAddition.reset()">
        <i class="fa fa-repeat"></i>
        <span class="ml5">重置</span>
      </a>
    </div>
  </div>
</div>